package com.yanqu.road.logic.bussiness.player.activity.auto.reward;

import com.yanqu.road.entity.activity.huashigang.*;
import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.logic.bussiness.LogDaoHelper;

import java.util.List;
import java.util.Map;

/**
 * @Author wpj
 * @Date 2020/10/11
 */
public class UserHuaShiGangBusiness {
    // 宝库数据
    public static Map<Integer, HuaShiGangUserFloor> getHuaShiGangUserFloor(long userId) {
        return DaoHelper.getHuaShiGangFloorDaoImpl().getHuaShiGangUserFloor(userId);
    }

    public static boolean updateData(HuaShiGangUserFloor huaShiGangUserFloor) {
        return DaoHelper.getHuaShiGangFloorDaoImpl().update(huaShiGangUserFloor);
    }

    public static boolean addData(HuaShiGangUserFloor huaShiGangUserFloor) {
        return DaoHelper.getHuaShiGangFloorDaoImpl().add(huaShiGangUserFloor);
    }

    // 花石纲跨服用户数据
    public static Map<Long, HuaShiGangUserData> getHuaShiGangUserData(long activityId) {
        return DaoHelper.getHuaShiGangUserDataDaoImpl().getHuaShiGangUserData(activityId);
    }

    public static boolean updateData(HuaShiGangUserData huaShiGangUserData) {
        return DaoHelper.getHuaShiGangUserDataDaoImpl().update(huaShiGangUserData);
    }

    public static boolean addData(HuaShiGangUserData huaShiGangUserData) {
        return DaoHelper.getHuaShiGangUserDataDaoImpl().add(huaShiGangUserData);
    }

    // 花石纲基础数据
    public static HuaShiGangData getHuaShiGangData(int activityId) {
        return DaoHelper.getHuaShiGangBaseDataDaoImpl().getHuaShiGangData(activityId);
    }

    public static boolean updateData(HuaShiGangData huaShiGangData) {
        return DaoHelper.getHuaShiGangBaseDataDaoImpl().update(huaShiGangData);
    }

    public static boolean addData(HuaShiGangData huaShiGangData) {
        return DaoHelper.getHuaShiGangBaseDataDaoImpl().add(huaShiGangData);
    }

    // 花石纲藏宝
    public static Map<String, List<HuaShiGangTreasure>> getHuaShiGangTreasure(int activityId) {
        return DaoHelper.getHuaShiGangTreasureDaoImpl().getHuaShiGangTreasure(activityId);
    }

    public static boolean updateData(HuaShiGangTreasure huaShiGangTreasure) {
        return DaoHelper.getHuaShiGangTreasureDaoImpl().update(huaShiGangTreasure);
    }

    public static boolean addData(HuaShiGangTreasure huaShiGangTreasure) {
        return DaoHelper.getHuaShiGangTreasureDaoImpl().add(huaShiGangTreasure);
    }

    // 花石纲怪物
    public static Map<String, List<HuaShiGangMonsterData>> getHuaShiGangMonsterData(int activityId) {
        return DaoHelper.getHuaShiGangMonsterDataDaoImpl().getHuaShiGangMonsterData(activityId);
    }

    public static boolean updateData(HuaShiGangMonsterData huaShiGangMonsterData) {
        return DaoHelper.getHuaShiGangMonsterDataDaoImpl().update(huaShiGangMonsterData);
    }

    public static boolean addData(HuaShiGangMonsterData huaShiGangMonsterData) {
        return DaoHelper.getHuaShiGangMonsterDataDaoImpl().add(huaShiGangMonsterData);
    }

    // 获取攻击记录
    public static Map<String, Map<Integer, Map<Long, HuaShiGangAttackRecord>>> getHuaShiGangAttackRecord(int activityId) {
        return DaoHelper.getHuaShiGangAttackRecordDaoImpl().getHuaShiGangAttackRecord(activityId);
    }

    public static boolean updateData(HuaShiGangAttackRecord huaShiGangAttackRecord) {
        return DaoHelper.getHuaShiGangAttackRecordDaoImpl().update(huaShiGangAttackRecord);
    }

    public static boolean addData(HuaShiGangAttackRecord huaShiGangAttackRecord) {
        return DaoHelper.getHuaShiGangAttackRecordDaoImpl().add(huaShiGangAttackRecord);
    }

    // 获取精英怪排行奖励
    public static Map<Integer, List<HuaShiGangEliteReward>> getHuaShiGangEliteRewardMap(long activityId) {
        return DaoHelper.getHuaShiGangEliteRewardDaoImpl().getHuaShiGangEliteRewardMap(activityId);
    }

    public static boolean updateData(HuaShiGangEliteReward huaShiGangEliteReward) {
        return DaoHelper.getHuaShiGangEliteRewardDaoImpl().update(huaShiGangEliteReward);
    }

    public static boolean addData(HuaShiGangEliteReward huaShiGangEliteReward) {
        return DaoHelper.getHuaShiGangEliteRewardDaoImpl().add(huaShiGangEliteReward);
    }

}
